package com.ship.dispatch.mapper.performance;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.dispatch.bean.ConShipping;
import com.ship.dispatch.bean.performance.PerformanceList;
import com.ship.dispatch.bean.performance.PerformanceOveList;
import com.ship.dispatch.bean.performance.vo.PerformanceCon;
import com.ship.dispatch.bean.performance.vo.PerformanceListVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PerformanceConMapper extends BaseMapper<PerformanceCon> {
    PerformanceCon getinfoById(@Param("id") String id);

    List<ConShipping> getTenancyInfo(@Param("imo") String imo);

    List<PerformanceOveList> getOverhaulInfo(@Param("imo") String imo);

    List<String> getImo(@Param("query") PerformanceListVo query);

    @Select("SELECT ship_name,contract_type,trade_body FROM con_shipping WHERE imo = #{imo}")
    List<PerformanceCon> getinfoByIdList(String imo);

    List<PerformanceList> queryPerformanceList(@Param("query") PerformanceListVo query);

    List<String> queryShipNameList();

    List<PerformanceList> SchemeDetailPageExport(@Param("ids") List<String> ids);

    PerformanceList queryPerformance(@Param("id") Long id);
}
